﻿using System;
using GeoSketch2.Core;

namespace GeoSketch2.Archaeo
{
    public partial class TBPolyline : BaseToolbar
    {
        #region Fields
        /// <summary>
        /// The current tool used to draw of the polyline
        /// </summary>
        public TPolyline CurrentTool; 
        #endregion

        #region Constructor
        /// <summary>
        /// The toolbar of the ArchaeoPolyline tool
        /// </summary>
        public TBPolyline()
        {
            InitializeComponent();

            ToolbarHeight = this.Height;

            Title = "Polyline";

            tbbArchaeoPolylineLine1.LeftButtonClicked = true;
            tbbArchaeoPolylineLine1.RightButtonClicked = true;
        } 
        #endregion

        #region Events
        /// <summary>
        /// The action when clicking the hide button of the toolbar
        /// </summary>
        protected override void button_hide_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }  
        #endregion
    }
}
